@model Wiwi.Models.LogOnModel

@{
    ViewBag.Title = "Log in!";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")
<!--<div class="grid_6" id="wiwi-sign-in">-->
<div class="grid_6 form-bg" id="wiwi-sign-in">

@using (Html.BeginForm())
{
             <h5>Already a member?<span>Sign In!</span></h5>
          
            <div class="editor-label">
                @Html.TextBoxFor(m => m.UserName, new{ @placeholder="User Name" })
                <div class="helper-tip">
                @Html.ValidationMessageFor(m => m.UserName)
                </div>
            </div>

            <div class="editor-label">
                @Html.PasswordFor(m => m.Password, new{ @placeholder="Password" })
                <div class="helper-tip">
                @Html.ValidationMessageFor(m => m.Password)
                </div>
            </div>

            <p>
                @Html.CheckBoxFor(m => m.RememberMe, new { @class = "aCheckbox" })
            @*    @Html.LabelFor(m => m.RememberMe) // replaced with html due to no 'class' option for label *@
            <input name="RememberMe" type="hidden" value="false" />
            <label for="RememberMe" class="checkbox-label">Remember me?</label>
            </p>
                        
            <input type="submit" value="Log On"  id="submit-button" />
                            
            <p>
                @Html.ActionLink("Forgot password ?", "PasswordForgot", "Account")
            </p>
    
}

    </div>


      @if (!Request.IsAuthenticated)
        { // From front Page
            <div class="grid_6 push_1 form-bg" id="wiwi-sign-up">
            <h5>New to WiWi? <span>Join today!</span></h5>
                
                @{
            Wiwi.ViewModels.RegistrationTop mod = new Wiwi.ViewModels.RegistrationTop();
            @Html.Partial("~/Views/Home/Registration.cshtml", mod);
                 }
            </div>
        }

   